package com.yanqu.road.entity.unioncampwar;


import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.DataStatus;
import com.yanqu.road.entity.FieldTypeAnnotation;

/**
 * 公告
 */
@FieldTypeAnnotation(tableName = "t_c_union_camp_war_notice", autoSave = true)
public class UnionCampWarNoticeData extends DataObject {
    @FieldTypeAnnotation(desc = "后台分组", select = true, update = true)
    private int centerGroupId;
    @FieldTypeAnnotation(desc = "所属分组", select = true, update = true)
    private int groupId;
    @FieldTypeAnnotation(desc = "周", select = true, update = true)
    private int weekId;
    @FieldTypeAnnotation(desc = "阵营")
    private int attackCampId;
    @FieldTypeAnnotation(desc = "敌对玩家id")
    private long attackUserId;
    @FieldTypeAnnotation(desc = "防守商会id")
    private String defendUnionId;
    @FieldTypeAnnotation(desc = "防守商会名称")
    private String defendUnionName;
    @FieldTypeAnnotation(desc = "阵营")
    private int defendCampId;
    @FieldTypeAnnotation(desc = "据点id")
    private int holdId;
    @FieldTypeAnnotation(desc = "连胜数")
    private int winNum;
    @FieldTypeAnnotation(desc = "胜方加的积分")
    private long scoreAdd;
    @FieldTypeAnnotation(desc = "战报时间")
    private long battleTime;

    public UnionCampWarNoticeData(int centerGroupId, int groupId, int weekId) {
        this.centerGroupId = centerGroupId;
        this.groupId = groupId;
        this.weekId = weekId;
        setInsertOption();
    }

    public UnionCampWarNoticeData() {
    }

    public int getCenterGroupId() {
        return centerGroupId;
    }

    public void setCenterGroupId(int centerGroupId) {
        this.centerGroupId = centerGroupId;
    }

    public int getGroupId() {
        return groupId;
    }

    public void setGroupId(int groupId) {
        if (this.groupId != groupId) {
            this.groupId = groupId;
            setOp(DataStatus.Update);
        }
    }

    public int getWeekId() {
        return weekId;
    }

    public void setWeekId(int weekId) {
        this.weekId = weekId;
    }

    public int getAttackCampId() {
        return attackCampId;
    }

    public void setAttackCampId(int attackCampId) {
        if (this.attackCampId != attackCampId) {
            this.attackCampId = attackCampId;
            setOp(DataStatus.Update);
        }
    }

    public int getDefendCampId() {
        return defendCampId;
    }

    public void setDefendCampId(int defendCampId) {
        if (this.defendCampId != defendCampId) {
            this.defendCampId = defendCampId;
            setOp(DataStatus.Update);
        }
    }

    public long getAttackUserId() {
        return attackUserId;
    }

    public void setAttackUserId(long attackUserId) {
        if (this.attackUserId != attackUserId) {
            this.attackUserId = attackUserId;
            setOp(DataStatus.Update);
        }
    }

    public String getDefendUnionId() {
        return defendUnionId;
    }

    public void setDefendUnionId(String defendUnionId) {
        this.defendUnionId = defendUnionId;
    }

    public String getDefendUnionName() {
        return defendUnionName;
    }

    public void setDefendUnionName(String defendUnionName) {
        this.defendUnionName = defendUnionName;
    }

    public int getHoldId() {
        return holdId;
    }

    public void setHoldId(int holdId) {
        this.holdId = holdId;
    }

    public int getWinNum() {
        return winNum;
    }

    public void setWinNum(int winNum) {
        this.winNum = winNum;
    }

    public long getScoreAdd() {
        return scoreAdd;
    }

    public void setScoreAdd(long scoreAdd) {
        this.scoreAdd = scoreAdd;
    }

    public long getBattleTime() {
        return battleTime;
    }

    public void setBattleTime(long battleTime) {
        this.battleTime = battleTime;
    }
}
